import request from '@/utils/request'

export function createProxyCategory(data) {
  return request({
    url: '/proxy/create',
    method: 'post',
    data
  })
}

export function deleteProxyCategory(data) {
  return request({
    url: '/proxy/delete',
    method: 'post',
    data
  })
}

export function updateProxyCategory(data) {
  return request({
    url: '/proxy/update',
    method: 'post',
    data
  })
}

export function listAllMCategory() {
  return request({
    url: '/proxy/listAll',
    method: 'get'
  })
}

export function listProxyCategory(query) {
  return request({
    url: '/proxy/list',
    method: 'get',
    params: query
  })
}
